package com.i360day.common.security;

import com.i360day.common.core.ServletUtils;

/**
 * @program: hd_cloud
 * @description:
 * @author: liju.z
 * @create: 2020-07-13 16:37
 **/
public abstract class SignParamConstant {

    /**
     * 接收签名串参数名,默认为sign
     */
    public static final String sign = "sign";

    /**
     * 接收应用ID参数名,默认为appId
     */
    public static final String appKey = "appKey";

    /**
     * 接收时间戳参数名,默认为timestamp
     */
    public static final String timestamp = "timestamp";
    /**
     * app密匙
     */
    public static final String appSecurity = "appSecurity";

    public static String getSign() {
        return ServletUtils.getRequest().getParameter(sign);
    }

    public static String getAppKey() {
        return ServletUtils.getRequest().getParameter(appKey);
    }

    public static String getTimestamp() {
        return ServletUtils.getRequest().getParameter(timestamp);
    }

    public static String getAppSecurity() {
        return ServletUtils.getRequest().getParameter(appSecurity);
    }
}
